using UnityEngine;
using UnityEngine.UI;

namespace Assets.Scripts.GDK
{
	public class gdk_message_manager
	{
		public static object[] items;

		public static void hideAll()
		{
		}

		public static void show(string itemID, string msg)
		{
			GameObject gameObject = gdk_load.loadPrefab(itemID);
			gdk_scene_manager.addMessage(gameObject);
			Transform transform = gdk_utils.FindChild(gameObject.transform, "Text");
			transform.GetComponent<Text>().text = msg;
			gdk_runTime.setTimeOut(delegate
			{
				if ((bool)gameObject)
				{
					hide(gameObject);
				}
			}, 1f, gameObject);
		}

		public static void _show()
		{
		}

		public static void hide(GameObject node)
		{
			gdk_scene_manager.delMessage(node);
		}

		public static void _hide()
		{
		}
	}
}
